package com.lss.study.algorithm.niuke;

import java.util.Scanner;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:02
 */
public class T1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String str = sc.nextLine();
            String[] arr = str.split(" ");
            System.out.println(arr[arr.length - 1].length());
        }
    }
}
